SET %Message1%="Welcome to the %Application% Installation Program."
SET %Message2%="This program will install the %Application% software in the directory you specify on your hard disk."
DialogBox("Welcome")
IF %ERROR% == IDCANCEL GOTO :EXIT
// Ask the user where to install the software
:RETRY
SET %Message1%="The install program will copy the %Application% files into the following directory:"
DialogBox("AskPath")
IF %ERROR% == IDBACK GOTO :BACK
IF %ERROR% == IDCANCEL GOTO :EXIT
// Make sure we still have Disk #01 in the drive
CheckExists("%CurrentDrive%DISK01", "Please insert the diskette labelled 'DISK01'")
IF %ERROR% == IDCANCEL GOTO :EXIT
// Copy files from disk & show in gauge - no usage or overwrite check
CopyFile(12)
"BWCC.DLL", "%InstallPath%", "Copying:"
"CTL3D.DLL", "%InstallPath%", "Copying:"
"FILE_ID.DIZ", "%InstallPath%", "Copying:"
"LICENCE.TXT", "%InstallPath%", "Copying:"
"MH_F.DLL", "%InstallPath%", "Copying:"
"MH_TASK2.EXE", "%InstallPath%", "Copying:"
"PROGRAMS.EXE", "%InstallPath%", "Copying:"
"README.WRI", "%InstallPath%", "Copying:"
"REGISTER.EXE", "%InstallPath%", "Copying:"
"REGISTER.WRI", "%InstallPath%", "Copying:"
"SEARCH.EXE", "%InstallPath%", "Copying:"
"START.EXE", "%InstallPath%", "Copying:"
// Now setup a new program manager group and its icons
MessageBox("Setup can create a Program Manager group|for the %Application% application.||Do you wish to create a Program|Manager group and icons ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)
IF %ERROR% == IDNO GOTO :NOPMGROUP
MakeGroup("%Application%", "")
MakeIcon("MH-Task Version 2.0", "%InstallPath%MH_TASK2.EXE ")